package com.api.service;

public interface RedisService {

    boolean hasKey(String key);

    void setObject(String key, Object o, Long timeout);

    void setString(String key, String str, Long timeout);

    String get(String key);

    void del(String key);

    void hashPutObject(String key, String hashkey, Object o);

    String hashGet(String key, String hashkey);

    void hashDel(String key, String hashkey);

    boolean hashhasKey(String key, String hashkey);

    void expire(String key, Long timeout);

    Long getSingleId();

    Integer getShortSingleId();

    void sendMessage(String channel, String message);

    String getMessage(byte[] body);

    boolean lock(String key, Long timeout);

    boolean unLock(String key);

    Long rightPush(String key, String value);

    Long leftPush(String key, String value);

    String leftPop(String key);

}
